﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrowseLimit.aspx.cs" Inherits="BrowseLimit" %>
<%@ Register Src="UserControls/Nav.ascx" TagName="Nav" TagPrefix="uc"%>
<%@ Register Src="UserControls/Footer.ascx" TagName="Footer" TagPrefix="uc"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Generator" content="EditPlus" />
	<meta name="Author" content="FanFu" />
	<meta name="Keywords" content="" />
	<meta name="Description" content="" />
    <title>浏览限制</title>
	<link href="css/base.css" rel="stylesheet" type="text/css" />
	<script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
	<script src="js/effect.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ValidatorInput() {
            if ($.trim($("#txtAreaorIP").val()) == "") {
                PopupMsg('error', '地址或IP不能为空！');
                $("#txtAreaorIP").focus();
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

        <uc:Nav ID="Nav1" runat="server"/>

        <!-- main_content begin -->
	    <div id="main_content" class="clearfix">
            
            <!-- content_box begin -->
		    <div class="content_box">
				
			    <div class="box_title">
				    <h3 class="subControl">浏览限制管理</h3>
			    </div>

			    <div class="box_content clearfix">
					
				    <div id="msgPrompt" class="information" style="display:none;">
					    <img class="infoclose" alt="关闭" src="images/icons/cross_grey_small.gif" />
					    <div>提醒信息！</div>
				    </div>
					
				    <div id="dataList" class="box_content_tab">
					    <table>
                            <thead>
							    <tr>
								    <th width="3%"><input id="check_all" type="checkbox" /></th>
								    <th width="15%">限制的区域或IP</th>
                                    <th>限制时间</th>
                                    <th width="8%" style="text-align:center;">用户操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rptDataList" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><input value='<%# Eval("ID") %>' type="checkbox" /></td>
                                            <td><%# Eval("AreaorIP")%></td>
                                            <td><%# Eval("CreateTime")%></td>
                                            <td style="text-align:center;">
                                                <input title="Delete" class="btnDelete" type="button" onfocus="this.blur()" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                            <tfoot>
							    <tr>
								    <td colspan="4">
									    <div id="bulk_actions">
                                            <asp:Button ID="btnDelete" class="button" runat="server" Text="批量删除" 
                                            onclick="btnDelete_Click" />
									    </div>
									    <div id="paging" runat="server"></div>
								    </td>
							    </tr>
						    </tfoot>
                        </table>  
				    </div>
                    <div id="addEdit">
                        <table style="background:#E5E5E5;">
                            <tr>
                                <td width="11%"><label for="txtAreaorIP">新增区域或IP：</label></td>
                                <td><input style="width:99%" id="txtAreaorIP" class="textbox" type="text" runat="server" /></td>
                                <td width="7%"><asp:Button class="button" ID="btnAdd" runat="server" OnClientClick="return ValidatorInput();" onclick="btnAdd_Click" Text="新增" /></td>
                            </tr>
                        </table>
                    </div>
			    </div>

            <input id="deleteID" type="hidden" runat="server" />
		    <!-- content_box end -->
		    </div>

        <uc:Footer ID="Footer1" runat="server"/>

        <!-- main_content end -->
        </div>

    </form>
</body>
</html>
